from google.appengine.ext import db
from lyricsplit.models import LyricLrc

# Create your models here.
class EmoWord(db.Model):
    w = db.StringProperty()
    v = db.IntegerProperty()# valence [1,-1]
    desp = db.TextProperty()

class EmoPattern(db.Model):
    """
    specific pattern for the expression of emotion
    """
    lrc = db.ReferenceProperty(LyricLrc)
    desp = db.TextProperty()
    add_dt = db.DateTimeProperty(auto_now=True)
    anno_ip = db.StringProperty()    
    

class EmoWordAnnoOk(db.Model):
    """
    whether the annotation of the emo word is done
    update when click next
    """
    lrc = db.ReferenceProperty(LyricLrc)
    anno_ok = db.IntegerProperty(default=0)
